Prevent criticals when initializing a Wayland display
authorMatthias Clasen <mclasen@redhat.com>
Sat, 4 May 2013 20:11:00 +0000 (16:11 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 4 May 2013 20:13:09 +0000 (16:13 -0400)
commite61df371c9e6ed19e138391d258521486a27f735
tree2b2175a9c6739491dec792b2b3b7cf48e563e164
parented5ef04127c5663d03ec81759fdee6d1a3a8a8af
Prevent criticals when initializing a Wayland display

When we call _gdk_wayland_display_load_cursor_theme during
the initial opening of the first display, gdk_setting_get does
not work yet, since it relies on the default display/screen
being set, which only happens after open returns.
Instead, just use the screen of this display.
gdk/wayland/gdkdisplay-wayland.c